<?php 
	echo $javascript->link('funciones'); 
?>
	<div id="infogeneralmetodos">
			<?php if(!empty($formasPago)):?>
			<table class="tablasmetodospagos">
				<tr style='text-align:center'>
					<td class='tdlabeltipopago'>Tipo de Pago</td>
					<td class='tdlabeltipopagopago'>Estado</td>
				</tr>
				<?php foreach ($formasPago as $formaPago):?>
					<?php 
					echo "<tr>";
						echo "<td class='trleftmetodopago' id='".$formaPago['Pago']['id']."'>".$formaPago['Pago']['metodo']."</td>";
						echo "<td class='tdrightmetodopago'>";
						//echo "<select name='".$producto['Pago']['id']."' id='active' class='boxmetodo'>";
						//echo "<select name='metodo[".$formaPago['Pago']['id']."]' id='active' class='boxmetodo'>";
						echo "<select id='".$formaPago['Pago']['id']."' name='activados[]' class='boxmetodo'>";
									if ($formaPago['Pago']['activo']==1){
										echo "<option value='1'>&nbsp&nbsp Activado &nbsp&nbsp</option>";
										echo "<option value='0'> Desactivado </option>";
										echo "</select>";
									}
									else{
										echo "<option value='0'> Desactivado </option>";
										echo "<option value='1'>&nbsp&nbsp Activado &nbsp&nbsp</option>";
										echo "</select>";
									}
						echo "</td>";
					echo "</tr>";
					echo "<input type='hidden' value='".$formaPago['Pago']['id']."'/>";
					?>
				<?php endforeach;?>
			</table>
			<div class="salvarmetodos">
				<?php echo $form->button('Salvar',array('class'=>'salvarmodifmetodos','id'=>'salvarmodifmetodos'));?>
			</div>
			<?php endif;?>
	</div>